import axios from 'axios'


export function startUpload(data) { //开始上传图片
  const url = baseURL + 's=upload/base64UploadImages'
  return axios.post(url, data, {
    headers: {'Content-Type': 'application/x-www-form-urlencoded'}
  }).then(res => {
    return res.data;
  })
}

export function PhotoWall(data) { //图片列表
  const url = baseURL + 's=MyPhotos/PhotoWall'
  return axios.post(url, data, {
    headers: {'Content-Type': 'application/x-www-form-urlencoded'}
  }).then(res => {
    return res.data;
  })
}

export function systemPhotoWall(data) { //系统默认图片
  const url = baseURL + 's=MyPhotos/SystemPhotoWall'
  return axios.post(url, data, {
    headers: {'Content-Type': 'application/x-www-form-urlencoded'}
  }).then(res => {
    return res.data;
  })
}


export function DeletePhoto(data) { //图片删除
  const url = baseURL + 's=MyPhotos/DeletePhoto'
  return axios.post(url, data, {
    headers: {'Content-Type': 'application/x-www-form-urlencoded'}
  }).then(res => {
    return res.data;
  })
}

